<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->
<head>
<meta charset="utf-8">

<?php 
	//INIT COMMON OBJECTS
	$config = ConfigFactory::getInstance()->getConfig();
	$translator = LanguageFactory::getInstance();
?>
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
       More info: h5bp.com/i/378 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<title><?php echo $config->application->maintitle; ?></title>
<meta name="description" content="">

<!-- Mobile viewport optimized: h5bp.com/viewport -->
<meta name="viewport" content="width=device-width">

<!-- <link rel="shortcut icon" href="/favicon.ico" /> -->
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />

<link href="./css/main.css" rel="stylesheet" type="text/css" media="all" />
<link href="./css/dark-hive/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css" media="all" />
<link href="./css/dark-hive/jquery-ui-override.css" rel="stylesheet" type="text/css" media="all" />
<link href="./css/dd.css" rel="stylesheet" type="text/css" media="all" />

</head>
<body>
	<script src="./js/jquery-1.10.2.min.js" type="text/javascript"></script>
	<script src="./js/jquery-ui-1.10.3.custom.js" type="text/javascript"></script>
	<script src="./js/jquery.dd.min.js" type="text/javascript"></script>
	<script src="./js/main.js" type="text/javascript"></script>

	<script type="text/javascript">
				$(document).ready(function(){
					init();

					//trigger the lang selectbox transformation
					try {
						$(".custom_chk").msDropDown({roundedCorner:false, mainCSS:'dd', showIcon: true});
					} catch(e) {
						alert(e.message);
					}
				});
	</script>

<div id="container">
	<!-- Layout rendering -->
	<?= $this->render('header.phtml') ?>
	
	<div id='content'>
		<?= $this->layout()->content ?>
	</div>
	
	<?= $this->render('footer.phtml') ?>
</div>

</body>
</html>
